package com.ta.stage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName(value = "role")
@ApiModel(description = "角色表")
public class Role implements Serializable {

    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "角色名称")
    private String name;

    @ApiModelProperty(value = "查询关键子")
    private String rkey;

    @ApiModelProperty(value = "状态")
    private Integer state;

    @TableField(value = "parent_id")
    @ApiModelProperty(value = "父级id")
    private Integer parentId;

    @TableField(value = "create_by")
    @ApiModelProperty(value = "创建者")
    private Integer createBy;

    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "备用1")
    private String by1;

    @ApiModelProperty(value = "备用2")
    private String by2;
}
